.sidebar {
  padding-top: 0;
  background-color: rgb(235, 244, 255);
  color: #222;
  transition: all 0.5s;
  font: 400 14px/2 "Microsoft YaHei",helvetica, arial, verdana, sans-serif;
  height: 100%;
  width: 220px;
  position: relative;
  display: block;
  box-sizing: border-box;
  border-right: none;
  li {
    list-style: none;
    color: #222 !important;
    font-weight: 400;
  }
  li:hover {
    cursor: pointer;
    background: #e6f7ff;
    color: #409EFF !important;
    font-weight: 500;
    transition: all .3s ease;
  }
  i {
    margin-right: 5px;
    font-size: 18px;
    position: relative;
    top: 3px;
    color: #409EFF;
  }
  .sidebar-title {
    height: 50px;
    line-height: 50px;
    color: #222 !important;
    font-weight: 400;
  }
  .ul-parent {
    padding-left: 0;
    margin: 0;
    overflow: auto;
    height: calc(100% - 56px);
    >li {
      padding-left: 10px;
      border-left: solid 4px transparent;
      background: transparent;
      color: #222 !important;
      font-weight: 400;
      transition: color 0.2s;
    }
    >li.active{
      border-left-color: #409EFF;
      background: #fff;
      color: #409EFF !important;
      font-weight: 700;
    }
    >li.active .sidebar-title {
      color: #409EFF !important;
      font-weight: 700;
    }
    .ul-child {
      display: none;
      padding-left: 10px;
      margin: 0;
      i {
        font-size: 14px;
        color: #409EFF;
      }
      li {
        color: #222 !important;
        font-weight: 400;
        transition: color 0.2s;
      }
      li:hover div{
        color: #409EFF !important;
        font-weight: 500;
      }
      div {
        color: #222 !important;
        font-weight: 400;
      }
      div.active, li.active div {
        color: #409EFF !important;
        font-weight: 700;
      }
    }
    .ul-child.submenu-show{
      padding-bottom: 6px;
    }
    .showleaf{
      display: block;
    }
  }
}

.sidebar.siderHide{
  width: 50px !important;
  li {
    padding-left:0px !important;
    text-align: center;
  }
  .sidebar-title {
    height: auto;
    line-height: normal;
  }
  i {
    margin:6px 0px
  }
  .sidebar-label{
    display: block;
    width: 100%;
    line-height: 20px;
    white-space: normal;
    text-align: left;
    padding-left: 6px;
    padding-bottom: 6px;
  }
  .ul-parent {
    .ul-child {
      position: absolute;
      background: rgb(235, 244, 255);
      left: 51px;
      border-radius: 3px;
      padding-left: 0px;
      li{
        padding:3px 20px;
      }
    }
    .showpopup {
      display: block;
    }
  }
}

/* 移除固定定位，使用相对定位 */
#layout-sidebar {
  height: 100%;
  background-color: rgb(235, 244, 255);
  color: #222;
  width: 220px;
  padding-top: 70px;
  border-right: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.submenu-hide {
  max-height: 0;
  visibility: hidden;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden;
  -moz-transition-duration: 0.3s;
  -webkit-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -moz-transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  -webkit-transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  -o-transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
}

.submenu-show {
  max-height: 1500px;
  visibility: visible;
  opacity: 1;
  -moz-transition-duration: 0.3s;
  -webkit-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -moz-transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  -webkit-transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  -o-transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
}

.text-overflow {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
